public class SubscriptionSnapshotHolderModel extends Object implements XMLMarshallable
subscription or a sub-subscription inside a
counter snapshot, and contains the list of included counters.
It contains the following information:
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriptionSnapshotHolder">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="subscriptionSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="chargeSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" />
<xs:attribute name="lastSnapshotDate" type="xs:dateTime" />
<xs:attribute name="lastSnapshotDays" type="xs:int" />
<xs:attribute name="lastExportDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_NAME
The name of the object.
|
| Constructor and Description |
|---|
SubscriptionSnapshotHolderModel()
Builds an empty
SubscriptionSnapshotHolderModel object |
SubscriptionSnapshotHolderModel(String subscriptionCode)
Builds a
SubscriptionSnapshotHolderModel object with a subscription code |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChargeSnapshotHolder(ChargeSnapshotHolderModel chargeSnapshotHolder)
Adds a
charge snapshot holder to the subscription snapshot holder |
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
void |
addCounter(CounterModel counter)
Add a
counter to the snapshot holder |
void |
addSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder)
Adds a
subscription snapshot holder to the subscription snapshot holder |
List<ChargeSnapshotHolderModel> |
getChargesSnapshotHolders()
Gets the list of
charge snapshot holders (for charge activations)
contained in the snapshot holder. |
String |
getCode()
Gets the code of the associated
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions). |
List<CounterModel> |
getCounters()
Gets the list of
counters contained in the snapshot holder. |
Date |
getLastExportDate()
Deprecated.
Deprecated since version 2.0 of SAP CC
|
Date |
getLastSnapshotDate()
Gets the last snapshot date of the subscription (only for root subscriptions).
|
int |
getLastSnapshotDays()
Gets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the
consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).
|
List<SubscriptionSnapshotHolderModel> |
getSubscriptionsSnapshotHolders()
Gets the list of
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setChargesSnapshotHolders(List<ChargeSnapshotHolderModel> chargesSnapshotHolders)
Sets the list of
charge snapshot holders (for charge activations)
contained in the snapshot holder. |
void |
setCode(String code)
Sets the code of the associated
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions). |
void |
setCounters(List<CounterModel> counters)
Sets the list of
counters contained in the snapshot holder. |
void |
setLastExportDate(Date lastExportDate)
Deprecated.
Deprecated since version 2.0 of SAP CC
|
void |
setLastSnapshotDate(Date lastSnapshotDate)
Sets the last snapshot date of the subscription (only for root subscriptions).
|
void |
setLastSnapshotDays(int lastSnapshotDays)
Sets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the
consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).
|
void |
setSubscriptionsSnapshotHolders(List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders)
Sets the list of
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder. |
public static final String MODEL_NAME
public SubscriptionSnapshotHolderModel()
SubscriptionSnapshotHolderModel objectpublic SubscriptionSnapshotHolderModel(String subscriptionCode)
SubscriptionSnapshotHolderModel object with a subscription codesubscriptionCode - The code of a subscriptionpublic String getCode()
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions).subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions)public void setCode(String code)
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions).code - the code of the associated subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions)public Date getLastSnapshotDate()
public void setLastSnapshotDate(Date lastSnapshotDate)
lastSnapshotDate - the last snapshot date of the subscriptionpublic int getLastSnapshotDays()
public void setLastSnapshotDays(int lastSnapshotDays)
lastSnapshotDays - the maximum number of days in the past for the subscription snapshot holder@Deprecated public Date getLastExportDate()
@Deprecated public void setLastExportDate(Date lastExportDate)
lastExportDate - the last export date of the associated subscriptionpublic List<CounterModel> getCounters()
counters contained in the snapshot holder.counters contained in the snapshot holderpublic void setCounters(List<CounterModel> counters)
counters contained in the snapshot holder.counters - the list of counters contained in the snapshot holderpublic void addCounter(CounterModel counter)
counter to the snapshot holdercounter - the counter to add to the snasphot holderpublic List<SubscriptionSnapshotHolderModel> getSubscriptionsSnapshotHolders()
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder.subscription snapshot holders
contained in the snapshot holder.public void setSubscriptionsSnapshotHolders(List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders)
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder.subscriptionsSnapshotHolders - the list of subscription snapshot holders
contained in the snapshot holder.public void addSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder)
subscription snapshot holder to the subscription snapshot holdersubscriptionsSnapshotHolder - the subscription snapshot holder to addpublic List<ChargeSnapshotHolderModel> getChargesSnapshotHolders()
charge snapshot holders (for charge activations)
contained in the snapshot holder.charge snapshot holders
contained in the snapshot holderpublic void setChargesSnapshotHolders(List<ChargeSnapshotHolderModel> chargesSnapshotHolders)
charge snapshot holders (for charge activations)
contained in the snapshot holder.chargesSnapshotHolders - the list of charge snapshot holders
contained in the snapshot holderpublic void addChargeSnapshotHolder(ChargeSnapshotHolderModel chargeSnapshotHolder)
charge snapshot holder to the subscription snapshot holderchargeSnapshotHolder - the charge snapshot holder to addpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into